<template>
    <div style="display:flex">
        <div style="width:100p;text-align:right;margin-right:10px">{{title}}</div>
        <select style="width:100px" :value="value" @change="$emit('input',$event.target.value)">
            <option v-for="obj in array" :key="obj[info.split(':')[0]]"
             :value="obj[info.split(':')[0]]">{{obj[info.split(':')[1]]}}</option>
        </select>
    </div>
</template>

<script>
export default {
    props:["title","array","value","info"]
}
</script>

<style>

</style>